package com.edee.bigday.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 远程调用的步骤：
 * 1、想要远程调用别的服务，需要以下步骤：
 *      1）引入open-feign；
 *      2）编写一个接口，告诉SpringCloud，该接口需要调用远程服务；
 *          声明接口的每个方法分别调用的哪个远程服务的哪个请求；
 *      3）开启远程调用功能,@EnableFeignClients。
 */
@EnableRedisHttpSession //开启SpringSession功能
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.edee.bigday.member.feign")
//@EntityScan("GrowthChangeHistoryEntity")
//@MapperScan("com.edee.bigday.member.dao")
public class BigdayMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(BigdayMemberApplication.class, args);
    }

}
